Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"css Animation"
Bootstrap 3.0.0 Snippet by
ALIMUL AL RAZY
3.0.0
jQuery
animation
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
5.3K
 
3 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <div class="welcome-section content-hidden"> <div class="content-wrap"> <ul class="fly-in-text"> <li>H</li> <li>i</li> </ul> <a href="#" class="enter-button">Enter</a> </div> </div>
* { margin: 0; padding: 0; } body { font-family: 'Open Sans', Arial, sans-serif; font-weight: 700; } .welcome-section { position: absolute; width: 100%; height: 100%; top: 0; left: 0; background-color: #000; overflow: hidden; } .welcome-section .content-wrap { position: absolute; left: 50%; top: 50%; transform: translate3d(-50%, -50%, 0); } .welcome-section .content-wrap .fly-in-text { list-style: none; } .welcome-section .content-wrap .fly-in-text li { display: inline-block; margin-right: 30px; font-size: 5em; color: #fff; opacity: 1; transition: all 2s ease; } .welcome-section .content-wrap .fly-in-text li:last-child { margin-right: 0; } .welcome-section .content-wrap .enter-button { display: block; text-align: center; font-size: 1em; text-decoration: none; text-transform: uppercase; color: #adff2f; opacity: 1; transition: all 1s ease 2s; } .welcome-section.content-hidden .content-wrap .fly-in-text li { opacity: 0; } .welcome-section.content-hidden .content-wrap .fly-in-text li:nth-child(1) { transform: translate3d(-100px, 0, 0); } .welcome-section.content-hidden .content-wrap .fly-in-text li:nth-child(2) { transform: translate3d(100px, 0, 0); } .welcome-section.content-hidden .content-wrap .enter-button { opacity: 0; transform: translate3d(0, -30px, 0); } @media (min-width: 800px) { .welcome-section .content-wrap .fly-in-text li { font-size: 10em; } .welcome-section .content-wrap .enter-button { font-size: 1.5em; } }
$(function() { var welcomeSection = $('.welcome-section'), enterButton = welcomeSection.find('.enter-button'); setTimeout(function() { welcomeSection.removeClass('content-hidden'); }, 500); enterButton.on('click', function(e) { e.preventDefault(); welcomeSection.addClass('content-hidden').fadeOut(); }); })();
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76